package chapter01.oop;

/**
 * Created with IntelliJ IDEA.
 * ClassName: PhoneTest
 * Package: chapter01
 * Description:
 * User: fzykd
 *
 * @Author: LQH
 * Date: 2023-09-17
 * Time: 22:25
 */

public class PhoneTest {
    public static void main(String[] args) {
        //创建对象
        Phone p1 = new Phone();

        //使用手机 通过对象 内部 声明的属性和方法
        p1.name = "HUAWEI";
        p1.price = 6899;

        System.out.println("name = " + p1.name + ", price = " + p1.price);

        p1.call();
        p1.sendMessage("有内鬼，终止交易");
        p1.playGame();

    }
}
